home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group01b.txt
/
000123_icon-group-sender_Thu Aug 2 12:32:02 2001.msg
< prev
next >
Wrap
Internet Message Format
|
2002-01-03
|
2KB
Return-Path: <icon-group-sender>
Received: (from root@localhost)
by baskerville.CS.Arizona.EDU (8.11.1/8.11.1) id f72JVWk29688
for icon-group-addresses; Thu, 2 Aug 2001 12:31:32 -0700 (MST)
Message-Id: <200108021931.f72JVWk29688@baskerville.CS.Arizona.EDU>
From: Chris.D.Tenaglia@jci.com
Subject: Re: list processing
To: dodo@hotmail.com
Cc: icon-group@cs.arizona.edu
Date: Thu, 2 Aug 2001 11:02:48 -0500
X-MIMETrack: Serialize by Router on jwimkrs1.na.jci.com/NA/Johnson_Controls(Release 5.07a
|May 14, 2001) at 08/02/2001 11:24:48 AM
Errors-To: icon-group-errors@cs.arizona.edu
Status: RO
Content-Length: 1750
procedure main(param)
renlist := param[1]
(in := open(renlist)) | stop("Can't read ",renlist)
every line := !in do
{
old := parse(line,'\' ')[1]
new:=parse(line,'\' ')[2]
command := "ren " || old || " " new
write(command)
system(command)
}
close(in)
write("Process completed.")
end
procedure parse(line,delims)
static chars
chars := &cset -- delims
tokens := []
line ? while tab(upto(chars)) do put(tokens,tab(many(chars)))
return tokens
end
dodo@hotmail.
com To: icon-group@CS.Arizona.EDU
cc:
08/02/01 Subject: list processing
12:09 AM
hello
i need to rename a number of files (approx 120)
all files to be renamed are in the same directory
i have a list with entries like this:
'name1' 'newname1'
'name2' 'newname2'
.
.
How can i force msdos REName to accept name, newname as parameters ?
(i use Icon Version 9.3.2. July 1, 1999 for msdos)
Can you give me a hint ?